//
//  ListMyPublish.swift
//  pgy
//
//  Created by vsccw on 2018/12/29.
//  Copyright © 2018 vsccw.com. All rights reserved.
//

import UIKit

struct ListMyPublish: Decodable {
  
  struct List: Decodable {
    let apps: [AppInfo]
    
    enum CodingKeys: String, CodingKey {
      case apps = "list"
    }
  }
  
  let data: List?
  let message: String
  let code: Int
  
  enum CodingKeys: String, CodingKey {
    case data
    case message
    case code
  }
  
  
  init(from decoder: Decoder) throws {
    let container = try decoder.container(keyedBy: CodingKeys.self)
    self.data = try container.decodeIfPresent(List.self, forKey: .data)
    self.message = try container.decode(String.self, forKey: .message)
    self.code = try container.decode(Int.self, forKey: .code)
  }
}
